﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="treeview.aspx.cs" Inherits="Ecreate.Web.systemanage.product.treeview" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
  
       <link rel="stylesheet" type="text/css" href="/content/javascript/XTree25/dhtmlXTree.css"/>   
       <script type="text/javascript"  src="/content/javascript/jquery/jquery-1.3.2.js" ></script>
       <script type="text/javascript" src="/content/javascript/XTree25/dhtmlXCommon.js"></script>
	   <script type="text/javascript" src="/content/javascript/XTree25/dhtmlXTree.js"></script>	
       <script type="text/javascript" language="javascript">
           function tree_productOnclick(nodeId) {
               var level = tree_productclass.getUserData(nodeId, "level");
               if (typeof (level) == "undefined" || level == "") return;
               if (level==1) {
                   window.parent.frames["productDtlIframe"].location = "/systemanage/product/productlist.aspx?classid=" + nodeId;
               }
           }
           function createTree() {
               tree_productclass = new dhtmlXTreeObject("tree_product", "100%", "100%", 0);
               var xml = "<%=str_xml%>";
               tree_productclass.setSkin('dhx_skyblue');
               tree_productclass.setImagePath("/content/javascript/XTree25/imgs/csh_bluefolders/");
               tree_productclass.setOnClickHandler(tree_productOnclick);               
               tree_productclass.loadXMLString(xml);
           }
           $(document).ready(function() {
               createTree();
               window.parent.frames["productDtlIframe"].location = "/systemanage/client.aspx";

           });
    </script>
</head>
<body >
    <form id="form1" runat="server">
            <div id="tree_product">
            </div>	
            <div id="footer">
               <div id="div_addroot">
               </div>
               <div id="div_addchildnode">
               </div>
               <div id="div_deletenode">
               </div>               
            </div>
    </form>
</body>
</html>
